Tokens for Wait for Entry Change

The Wait for Entry Change activity produces the following tokens.

Name Description Sample Syntax*
Initially Satisfied Whether the wait condition was initially satisfied. This token can have one of two values: True or False. %(WaitforEntryChange_Event Initially Satisfied)
Duration How long it took for the wait condition to be satisfied. %(WaitforEntryChange_Event Duration)
Event Id The event ID number for the wait condition being satisfied. %(WaitforEntryChange_Event Id)
User Name The user who satisfied the wait condition.* %(WaitforEntryChange_Event User)
User SID The SID (Security Identifier) of the user who satisfied the activity's wait condition.* %(WaitforEntryChange_Event User SID)

*Note: When a wait condition is satisfied, two tokens are created that indicate who satisfied the condition (User Name and User SID). However, in the unlikely event that two users make changes to the entry within a short time period, the tokens indicate the user who made the changes that caused the wait condition to be evaluated, not necessarily the user who made the changes that caused the wait condition to be satisfied..

Example: A wait condition pauses a workflow until the starting document's "Status" field equals "Approved." If Joe modifies the "Priority" field on the document, the condition is evaluated to see if the "Status" field equals "Approved." Since the "Status" field is not set to "Approved", the condition is evaluated as false and the workflow does not continue. However, suppose that immediately after Joe modifies the "Priority" field, Jane changes the "Status" field to "Approved." If Workflow encounters any delay in processing notifications, the notification that Joe made changes to the document may be received after Jane updates the "Status" field. In this case, when Workflow checks the document's "Status" field, prompted by Joe's notification, it finds that the "Status" field says, "Approved." Because the wait condition has been satisfied, Workflow puts Joe's name in the %(WaitforEntryChange_Event User) token and his SID in the %(WaitforEntryChange_Event User SID) token.

*The "WaitforEntryChange" portion of the syntax changes to match the activity's name as specified in the Activity Name property box. Note that all non-alphanumeric characters, except underscores, are removed from the name. For example, if you rename the activity Wait for (Approval), the syntax for the Event Id token will be %(WaitforApproval_Event Id).